package com.fine.spark.connector.base.beans.process;

import com.fine.spark.connector.base.beans.BaseConfig
import com.fine.spark.connector.base.enums.TagEnum

import scala.beans.BeanProperty;


/**
 * @author jayce
 * @version 1.0
 * @date 2021/11/20 4:44 PM
 */
trait BaseProcessConfig extends BaseConfig {
  tag = TagEnum.PROCESSES.toString

  @BeanProperty
  var partitions: Integer = 0

  @BeanProperty
  var viewName: String = _

  @BeanProperty
  var show: Integer = 0

  @BeanProperty
  var code: String = _

  override def check(): Unit = {
    super.check()
    this.checkNotNull("code", "viewName")
  }
}
